package com.rem.hutool.my5Utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * @Author Rem
 * @Date 2020-08-23
 */

public class IdUtilDemo {
    public static void main(String[] args) {
        String s = IdUtil.fastSimpleUUID();
        System.err.println(s);
        Snowflake snowflake = IdUtil.getSnowflake(1, 2);
        System.err.println("雪花算法：" + snowflake.nextId());
    }
}
